package com.example.bridge.message;

/**
 * @author zhoubin
 */
public class Test {
    public static void main(String[] args) {
        AbstractMessage message = new NomalMessage(new EmailMsg());
        message.sendMessage("请假申请", "王总");

        message = new UrgencyMessage(new SmsMsg());
        message.sendMessage("请假申请", "王总");
    }
}
